<?php
	$uri_location = explode("/",$_SERVER['REQUEST_URI']);
	if (in_array("login",$uri_location)) $utils = "../core/utils/";
	else {
		if (in_array("frontend",$uri_location)) {
			$utils = "../backend/core/utils/";
			if (in_array("plugins",$uri_location)) $utils = "../../../../backend/core/utils/";
		}	
		else $utils = "core/utils/";
	}

	$files = scandir($utils);
	$i = 0;
	do {
		if (substr($files[$i],0,1) != chr(46)) include $utils.$files[$i];
		$i++;
	} while ($i < count($files));
?>